package cn.wtg.kotlindemo.testSingleActivityMulFragment

import android.view.View
import androidx.databinding.ObservableField
import cn.wtg.kotlindemo.R
import cn.wtg.kotlinlib.baseUi.BaseActivity
import cn.wtg.kotlinlib.baseUi.BaseFragment
import cn.wtg.kotlinlib.singleActivityMulFragmentVM.BaseFragmentBackStackLifecycleVM

/**
 * author: wtg
 * time: 2022/11/29
 * desc: 第一个fragmentVM
 */
class ThirdFragmentVM(fragment: BaseFragment, mActivity: BaseActivity) :
    BaseFragmentBackStackLifecycleVM(fragment, mActivity) {
    var content = ObservableField("我是ThirdFragmentVM")
    override fun initData() {

    }

    override fun getContainerId(): Int {
        return R.id.fragment_container
    }

    fun onclickContent(view:View){
        content.set("改变了值")
    }
}